package com.zzxy.spring5.po.;

import com.zzxy.spring5.service.factory.UserServiceStaticFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.*;

public class User implements BeanNameAware, BeanFactoryAware, InitializingBean {
    public String username;
    public String password;

    public String getUsername() {
        return username;
    }

    public User() {
        System.out.println("1.init.instance");
    }

    public void setUsername(String username) {
        this.username = username;
        System.out.println("2.set.preporty ...");
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public void myInit(){
        System.out.println("7.自定义-初始化");
    }
    public void myDestroy(){
        System.out.println("10.自定义-销毁");
    }

    public void setBeanName(String s){
        System.out.println("3.setBeanName-" + s);
    }
    public void setBeanFactory(BeanFactory s) throws BeansException{
        System.out.println("4.setBeanFactry-" + s);
    }
    public void  destroy() throws Exception{
        System.out.println("9.接口的销毁方法...");
    }
    public  void  afterPropertiesSet() throws Exception{
        System.out.println("6.属性设置完");
    }


}
IMemberService
        package com.zzxy.untitled.service.service.impl;

public interface IMemberService {


}

